package com.vb.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("cable_shop")
@ApiModel(value = "商品列表")
@EqualsAndHashCode(callSuper = true)
public class CableShop extends Model<CableShop> {

    private static final long serialVersionUID = 1L;

    /**
     * 商品的Id
     */
    @TableId(value = "shop_id",type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "商品的Id")
    private Long shopId;

    /**
     * 商品名称
     */
    @TableField(condition = SqlCondition.LIKE)
    @ApiModelProperty(value = "商品名称")
    private String shopName;

    /**
     * 商品规格
     */
    @ApiModelProperty(value = "商品规格")
    private String shopSpecifications;

    /**
     * 商品的价格
     */
    @ApiModelProperty(value = "商品的价格")
    private double shopPrice;

    /**
     * 商品的数量
     */
    @ApiModelProperty(value = "商品的数量")
    private Integer shopNum;

    /**
     * 商品库存位置
     */
    @ApiModelProperty(value = "商品库存位置")
    private String shopPic;

    /**
     * 商品图片
     */
    @ApiModelProperty(value = "商品图片")
    private String shopPlaces;

    /**
     * 创建人
     */
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建人 签到人")
    private String createBy;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 修改人
     */
    @TableField(fill = FieldFill.UPDATE)
    @ApiModelProperty(value = "修改人")
    private String updateBy;

    /**
     * 修改时间
     */
    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;

    /**
     * 备注信息
     */
    @ApiModelProperty(value = "备注信息")
    private String remarks;

    /**
     * 是否删除 1：已删除 0：正常
     */
    @TableLogic
    @ApiModelProperty(value = "删除标记,1:已删除,0:正常")
    @TableField(fill = FieldFill.INSERT)
    private String delFlag;

}
